﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRMS_Model;

namespace HRMS.Controllers
{
    public class Skills
    {
        public static void AddSkill(Skill skill)
        {
            using (var skillEntity = new HRMSEntities())
            {
                skillEntity.Skills.AddObject(skill);
                skillEntity.SaveChanges();
            }

        }
        
        public static List<Skill> Getskills()
        {
            using (var skillEmtity = new HRMSEntities())
            {
                return skillEmtity.Skills.ToList();
            }
        }
    }
}